package cn.edu.scau.cmi.wuzhenxin.hibernate.domain;

public class Student {

	private Integer id;
	private String name;
	private Teacher tutor;
	
	
	
	public Integer getId() {
		return id;
	}



	public void setId(Integer id) {
		this.id = id;
	}



	public String getName() {
		return name;
	}



	public void setName(String name) {
		this.name = name;
	}



	public Teacher getTutor() {
		return tutor;
	}



	public void setTutor(Teacher tutor) {
		this.tutor = tutor;
	}



	@Override
	public String toString() {
		return "Student [id=" + id + ", name=" + name + ", tutor=" + tutor.getId() + " "+tutor.getName() + "]";
	}

    
	
	
}
